<%-- 
    Document   : ProsesSeleksi
    Created on : Dec 7, 2012, 12:10:29 PM
    Author     : Ronny
--%>

<%@page import="bean.ProsesBean"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <link href="http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300" rel="stylesheet" type="text/css" />
        <link href="default.css" rel="stylesheet" type="text/css" media="all" />
    </head>
    <body>
        <%
            String username = (String) session.getAttribute("user");
            if (username == null) {
                username = "";
            }
        %>
        <div id="header" class="container">
            <div id="logo">
                <h1><a href="#">Pendafataran SMA Negeri Online</a></h1>
                <p>Yogyakarta</a></p>
            </div>
        </div>
        <div id="menu" class="container">
            <ul>
                <li><a href="FormHomeSekolah.jsp" accesskey="1" title="">Home Sekolah</a></li>
                <li><a href="FormProfilSekolah.jsp" accesskey="1" title="">Profil</a></li>
                <li   class="current_page_item"><a href="FormSeleksiSekolah.jsp" accesskey="2" title="">Seleksi</a></li>
                <li ><a href="FormDaftarDiterima.jsp" accesskey="3" title="">Daftar diterima</a></li>
                <li><a href="#" accesskey="4" title=""></a></li>
                <li><a href="#" accesskey="4" title=""></a></li>
            
               
                <li><a href="#" accesskey="4" title="">login as </a></li>
                <li><a href="#" accesskey="4" title=""><%=username%></a></li>
                <li><a href="logout.jsp" accesskey="5" title="">logout</a></li>
            </ul>
        </div>

        <div id="page" class="container">

            <div id="content">
                <h3>Seleksi sukses </h3><br>
                <a href="FormSeleksiSekolah.jsp">Kembali</a>

                <%

                    String status = request.getParameter("status");
                    String no = request.getParameter("nopend");
                    int nopend = Integer.parseInt(no);

                    ProsesBean PB = new ProsesBean();
                    if (status.matches("diterima")) {
                        PB.seleksiDiterima(nopend, username);
                    } else {
                        PB.seleksiDitolak(nopend);
                    }


                %>
                </table>
            </div>

        </div>
        <div id="footer">
            <p>Copyright (c) 2012 www.Vido_Dido.com </p>
        </div>
    </body>
</html>
